package com.highveldsky.gwtdatabinding.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.highveldsky.gwtdatabinding.shared.model.Car;

@RemoteServiceRelativePath("service")
public interface CarService extends RemoteService {

	Long createCar(Car car) throws Exception;
	void updateCar(Car car) throws Exception;
	void deleteCar(Long id) throws Exception;
	Car readCar(Long id) throws Exception;
	List<Car> listCars() throws Exception;
	
}
